﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
	<base href="<%=basePath%>">	
	<!-- jsp文件头和头部 -->
	<%@ include file="../admin/top.jsp"%>




	</head>
<body>
<div class="container-fluid" id="main-container">

		
<div id="page-content">
						
  <div class="row-fluid">

	<div class="row-fluid">
	

	<table id="table_report" class="table table-striped table-bordered table-hover">
		<thead>
		<tr>
			<th>序号</th>
			<th class="center">USERNAME</th>
			<th>COURSE_ID</th>
			<th>COURSE_NAME</th>
			<th style="width:155px;"  class="center">S_SCORE</th>
			<th class='center'>操作</th>
		</tr>
		</thead>

		<tbody>

		<c:choose>
			<c:when test="${not empty studentScoreList}">
				<c:forEach items="${studentScoreList}" var="student" varStatus="vs">
					<tr>
						<td class='center' style="width: 30px;">${vs.index+1}</td>
						<td>${student.USERNAME} </td>
						<td>${student.COURSE_ID}</td>
						<td>${student.COURSE_NAME}</td>
						<td>${student.S_SCORE}</td>
						<td style="width: 25%;">
							<a class='btn btn-mini btn-info' title="编辑" onclick="edit('${student.S_ID}')" ><i class='icon-edit'></i></a>
						</td>
					</tr>
				</c:forEach>
			</c:when>
		</c:choose>
		</tbody>
	</table>

	</div>
 
 
 
 
	<!-- PAGE CONTENT ENDS HERE -->
  </div><!--/row-->
	
</div><!--/#page-content-->
</div><!--/.fluid-container#main-container-->
		
		<!-- 返回顶部  -->
		<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
			<i class="icon-double-angle-up icon-only"></i>
		</a>
		
		<!-- 引入 -->
		<script src="static/1.9.1/jquery.min.js"></script>
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		
		<script type="text/javascript" src="static/js/bootbox.min.js"></script><!-- 确认窗口 -->
		<!-- 引入 -->
		
		<script type="text/javascript">
		
		top.hangge();
		</script>

		<script type="text/javascript">

			$(top.hangge());

			//编辑顶部菜单图标
			function edit(S_ID){
				top.jzts();
				var diag = new top.Dialog();
				diag.Drag=true;
				diag.Title ="修改分数";
				diag.URL = '<%=basePath%>student/toEdit.shtml?S_ID='+S_ID;
				diag.Width = 250;
				diag.Height = 250;
				diag.CancelEvent = function(){ //关闭事件
				/*	if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
						top.jzts();
						setTimeout("location.reload()",100);
					}*/

                    setTimeout("location.reload()",100);
					diag.close();
				};
				diag.show();
			}

		</script>

	</body>
</html>

